package foodmaterial.entity;

import java.io.Serializable;

public class CustomerRelation implements Serializable {
    private static final long serialVersionUID = 6622364243443443981L;

    private Long ancestor ;
    private Long descendant ;
    private Integer distance ;

    public CustomerRelation() {
    }

    public CustomerRelation(Long ancestor, Long descendant, Integer distance) {
        this.ancestor = ancestor;
        this.descendant = descendant;
        this.distance = distance;
    }

    public Long getAncestor() {
        return ancestor;
    }

    public void setAncestor(Long ancestor) {
        this.ancestor = ancestor;
    }

    public Long getDescendant() {
        return descendant;
    }

    public void setDescendant(Long descendant) {
        this.descendant = descendant;
    }

    public Integer getDistance() {
        return distance;
    }

    public void setDistance(Integer distance) {
        this.distance = distance;
    }
}
